package com.greedy.bulls.stock.user.startup;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Yanxy
 * @Date: Created in:2023-06-18
 * Description:
 */
@RestController
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@ComponentScan(basePackages = {"com.greedy"})
@MapperScan({"com.greedy.bulls.stock.user.dao", "com.greedy.bulls.stock.common.system.dao"})
@EnableTransactionManagement
public class StockUserApp {

    public static void main(String[] args) {
        SpringApplication.run(StockUserApp.class, args);
    }

    /**
     * 提供访问测试接口， 支持POST和GET
     **/
    @RequestMapping("/welcome")
    public String welcome() {
        return "welcome bulls stock platform! !";
    }

}
